
{if is_dir(XCX_PATH.'toutiao/')}
<h4 class="form-section">头条小程序</h4>
<div class="form-group">
    <label class="col-md-2 control-label">是否启用</label>
    <div class="col-md-9">
        <input type="checkbox" name="data[toutiao][use]" value="1" {if $data.toutiao.use}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
    </div>
</div>
<div class="form-group">
    <label class="control-label col-md-2">AppId</label>
    <div class="col-md-9">
        <input type="text" class="form-control input-xlarge" name="data[toutiao][AppId]" value="{$data.toutiao.AppId}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">AppKey</label>
    <div class="col-md-9">
        <input type="text" class="form-control input-xlarge" name="data[toutiao][AppKey]" value="{$data.toutiao.AppKey}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">AppSecret</label>
    <div class="col-md-9">
        <input type="text" class="form-control input-xlarge" name="data[toutiao][AppSecret]" value="{$data.toutiao.AppSecret}">
    </div>
</div>
{/if}

{if is_dir(XCX_PATH.'weixin/')}
<h4 class="form-section">微信小程序</h4>
<div class="form-group">
    <label class="col-md-2 control-label">是否启用</label>
    <div class="col-md-9">
        <input type="checkbox" name="data[wx][use]" value="1" {if $data.wx.use}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
    </div>
</div>
<div class="form-group">
    <label class="control-label col-md-2">AppId</label>
    <div class="col-md-9">
        <input type="text" class="form-control input-xlarge" name="data[wx][AppId]" value="{$data.wx.AppId}">
    </div>
</div>

<div class="form-group">
    <label class="control-label col-md-2">AppSecret</label>
    <div class="col-md-9">
        <input type="text" class="form-control input-xlarge" name="data[wx][AppSecret]" value="{$data.wx.AppSecret}">
    </div>
</div>
{/if}